<?php

header("content-type:text/html;charset=utf-8");

$num1=$_GET['usernum'];
$id=$_GET['userid'];
$pass1=$_GET['userpass'];
$age1=$_GET['userage1'];
$sex1=$_GET['usersex'];

$link=mysqli_connect('localhost','root','','show1');

mysqli_set_charset($link,"utf8");

$sql="insert into tx values($num1,'$id','$pass1',$age1,'$sex1')";

$result=mysqli_query($link,$sql);

if($result){
    echo "1";
}else{
    echo "0";
}
mysqli_close($link);

?>